package com.cuixichang.minimalism.domain;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cuixichang.minimalism.core.security.userdetails.CredentialDetail;
import com.cuixichang.minimalism.transfer.dto.IFormDTO;
import com.cuixichang.minimalism.transfer.po.IForm;

import java.util.List;

public interface IFormCommandService {
    List<String> getFormModules(String systemCode);
    IFormDTO insert(IFormDTO dto,CredentialDetail credentialDetail);
    Page<IFormDTO> searchPageByConditional(IFormDTO dto, Long pageNo, Long pageSize);
    boolean deleteById(Long id, String systemCode);
    IFormDTO selectByIdHasPreCheck(Long id, String systemCode);
    boolean updateById(IFormDTO dto, CredentialDetail credentialDetail);
    List<IFormDTO> searchFieldsByModuleName(IFormDTO dto,Long loginId);
}
